<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>科院酒店预订管理系统</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <!-- <link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet"> -->
    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">

</head>

<body>

<div th:insert="~{admin/commons/commons::nav}"></div>
<div class="container-fluid">
    <div class="row">

        <div th:insert="~{admin/commons/commons::sidebar}"></div>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <h1 style="margin-bottom: 20px">房间管理</h1>
            <div class="input-group input-group-sm">
                <!--房间名： <input-->
                    <!--style="height: 23px;width:100px;margin-bottom: 10px; margin-left: 15px;margin-right: 15px; padding-left: 5px;   "-->
                    <!--type="text" class="btn-control" placeholder="username" aria-describedby="sizing-addon3">-->
                <!--楼层： <select-->
                    <!--style="height: 23px;width:100px;margin-bottom: 10px; margin-left: 15px;margin-right: 15px; padding-left: 5px;   ">-->
                <!--<option>全部</option>-->
                <!--<option>1</option>-->
                <!--<option>2</option>-->
                <!--<option>3</option>-->
                <!--<option>4</option>-->
            <!--</select>-->
                <!--<button type="button" class="btn btn-sm btn-success"-->
                        <!--style="text-align: center; height: 25px;width:100px;margin-bottom: 10px; margin-left: 15px;margin-right: 15px; padding-left: 5px; padding-bottom: 5px;">-->
                    <!--搜索-->
                <!--</button>-->
                <a th:href="@{/skip/toAddRoom}" class="btn btn-sm btn-success"
                   style="text-align: center; height: 30px;width:100px;margin-bottom: 10px; margin-left: 15px;margin-right: 15px; padding-left: 5px; padding-bottom: 10px;">添加房型</a>
            </div>
            <div class="table-responsive">
                <table class="table table-striped table-sm">
                    <thead>
                    <tr>
                        <th>房间编号</th>
                        <th>房间照片</th>
                        <th>房间号</th>
                        <th>房间类型</th>
                        <th>楼层</th>
                        <th>状态</th>
                        <th>描述</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="room:${rooms}">
                        <td th:text="${room.getId()}"></td>
                        <td><img th:src="@{img/s1.jpg}" alt="" width="20px" height="10px"></td>
                        <td th:text="${room.getSn()}"></td>
                        <td th:text="${room.getRoomTypeId()}"></td>
                        <td th:text="${room.getFloorId()}"></td>
                        <td th:text="${room.getStatus()}"></td>
                        <td th:text="${room.getRemark()}"></td>
                        <td>
                            <a class="btn btn-sm btn-primary" th:href="${'/toUpdateRooms/'+room.getId()}" type="button">修改</a>
                            <a class="btn btn-sm btn-danger" th:href="${'/deletedRoom/'+room.getId()}" type="button">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </main>
    </div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" th:src="@{/js/jquery-3.2.1.slim.min.js}"></script>
<script type="text/javascript" th:src="@{/js/popper.min.js}"></script>
<script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
<!-- Icons -->
<script type="text/javascript" th:src="@{/js/feather.min.js}"></script>
<script>
    feather.replace()
</script>
</body>
</html>